<script setup lang='ts'>
const changeValue = (event: Event) => {
  const ele = event.target as HTMLInputElement
  console.log(ele.value)
}
</script>

<template>
  <input type="text" @input="changeValue($event)">
</template>

<style scoped></style>